<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    //1.模式（结构）匹配
    // []=[1,2,3]
    //2.索引相同的完成赋值
    const [a,b,c]=[1,2,3]
    console.log(a,b,c);
    const [d,[,,e],f]=[1,[2,4,5],3]
    console.log(d,e,f);
  </script>
</body>
</html>